<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后台用户管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/admin-style.css' />
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/jquery/jquery-1.7.2.min.js"></script>
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/js/admin.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/editor/kindeditor-min.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/editor/zh_CN.js"></script>
<script language="javascript">
var resizediv = function() { 
	$leftwidth = $(window).width()/2-150;
	$('.jqmWindow').css({ left: $leftwidth});
}
$(document).ready(function(){
	$feifeicms.show.table();
	$(window).resize(resizediv);
	resizediv();
});
function changeurl(cid,continu,player,stars,status){
	self.location.href='?s=Admin-Down-Show-cid-'+cid+'-stars-'+stars+'-status-'+status+'-type-{$type}-order-{$order}';
}
$(document).ready(function(){
	$feifeicms.show.table();
	$('#selectcid').change(function(){
		changeurl($(this).val(),'','','','');
	});
	$('#selectstars').change(function(){
		changeurl('','','',$(this).val(),'');
	});		
});
function createhtml(id){
	var ogxlset = $("#html_"+id).ogxlset();
	var left = (ogxlset.left/2)+50;
	var top = ogxlset.top+15;
	var html = $.ajax({
		url: '?s=Admin-Create-downid-id-'+id,
		async: false
	}).responseText;
	$("#htmltags").html(html);
	$("#htmltags").css({left:left,top:top,display:""});	
	window.setTimeout(function(){
		$("#htmltags").hide();
	},1000);
}
</script>
</head>
<body class="body">
<!--生成静态预览框-->
<div id="htmltags" style="position:absolute;display:none;" class="htmltags"></div>
<!--背景灰色变暗-->
<div id="showbg" style="position:absolute;left:0px;top:0px;filter:Alpha(Opacity=0);opacity:0.0;background-color:#gxlf;z-index:8;"></div>
<form action="?s=Admin-Down-Show" method="post" name="myform" id="myform">
<table border="0" cellpadding="0" cellspacing="0" class="table">
<thead><tr><th class="r"><span style="float:left">软件管理</span><span class="right"><a href="?s=Admin-Down-Add" style="float:right">添加文章资讯</a></span></th></tr></thead>
  <tr>
    <td class="tr ct" style="height:40px"><input type="button" value="所有" class="submit" onClick="changeurl('','','','','',2);"> <input type="button" value="未审核" class="submit" onClick="changeurl('','','','',2);"> <input type="button" value="已审核" class="submit" onClick="changeurl('','','','',1);"> <select name="selectcid" id="selectcid">
<option value="">按分类查看</option><volist name="list_down" id="gxldown"><option value="{$gxldown.list_id}" <eq name="gxldown.list_id" value="$cid">selected</eq>>{$gxldown.list_name}</option><volist name="gxldown['son']" id="gxldown"><option value="{$gxldown.list_id}" <eq name="gxldown.list_id" value="$cid">selected</eq>>├ {$gxldown.list_name}</option></volist></volist></select> <select name="selectstars" id="selectstars"><option value="0">按星级查看</option><option value="5" <eq name="stars" value="5">selected</eq>>五星</option><option value="4" <eq name="stars" value="4">selected</eq>>四星</option><option value="3" <eq name="stars" value="3">selected</eq>>三星</option><option value="2" <eq name="stars" value="2">selected</eq>>二星</option><option value="1" <eq name="stars" value="1">selected</eq>>一星</option></select> <input type="text" name="wd" id="wd" maxlength="20" value="{$wd|default='输入关键字搜索影片'|urldecode}" onClick="this.select();" style="color:#666666"> <input type="button" value="搜索" class="submit" onClick="post('?s=Admin-Down-Show');"></td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="table">
  <thead>
    <tr class="ct">
      <th class="r" width="20">ID</th>
      <th class="l" ><span style="float:left; padding-top:7px"><eq name="orders" value="down_id desc"><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-id-order-asc"><img src="__PUBLIC__/images/admin/up.gif" border="0" alt="点击按ID升序排列"></a><else /><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-id-order-desc"><img src="__PUBLIC__/images/admin/down.gif" border="0" alt="点击按ID降序排列"></a></eq></span>新闻标题</th>
      <th class="l" width="70">分类</th>
      <th class="l" width="60">人气<eq name="orders" value="down_hits desc"><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-hits-order-asc"><img src="__PUBLIC__/images/admin/up.gif" border="0" alt="点击按人气升序排列"></a><else /><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-hits-order-desc"><img src="__PUBLIC__/images/admin/down.gif" border="0" alt="点击按人气降序排列"></a></eq></th>
      <th class="l" width="60">日人气<eq name="orders" value="down_hits_day desc"><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-hits_day-order-asc"><img src="__PUBLIC__/images/admin/up.gif" border="0" alt="点击按人气升序排列"></a><else /><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-hits_day-order-desc"><img src="__PUBLIC__/images/admin/down.gif" border="0" alt="点击按人气降序排列"></a></eq></th>
      <th class="l" width="60">评分<eq name="orders" value="down_gold desc"><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-gold-order-asc"><img src="__PUBLIC__/images/admin/up.gif" border="0" alt="点击按评分升序排列"></a><else /><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-gold-order-desc"><img src="__PUBLIC__/images/admin/down.gif" border="0" alt="点击按评分降序排列"></a></eq></th>
    
      <th class="l" width="80">文章权重<eq name="orders" value="down_stars desc"><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-stars-order-asc"><img src="__PUBLIC__/images/admin/up.gif" border="0" alt="点击按星级升序排列"></a><else /><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-stars-order-desc"><img src="__PUBLIC__/images/admin/down.gif" border="0" alt="点击按星级降序排列"></a></eq></th>
      <th class="l" width="80">更新时间<eq name="orders" value="down_addtime desc"><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-addtime-order-asc"><img src="__PUBLIC__/images/admin/up.gif" border="0" alt="点击按时间升序排列"></a><else /><a href="?s=Admin-Down-Show-cid-{$cid}-stars-{$stars}-status-{$status}-type-addtime-order-desc"><img src="__PUBLIC__/images/admin/down.gif" border="0" alt="点击按时间降序排列"></a></eq></th>
      <th class="r" width="100">相关操作</th>
    </tr>
  </thead>
  <volist name="list" id="gxldown">
  <tbody>
  <tr>
    <td class="r ct"><input name='ids[]' type='checkbox' value='{$gxldown.down_id}' class="noborder" checked></td>
    <td class="l pd">
    <span style="float:left"><span style="color:#666666">{$gxldown.down_id}、</span><if condition="C('url_html') gt 0"><a href="javascript:createhtml('{$gxldown.down_id}');" id="html_{$gxldown.down_id}"><font color="green">生成</font></a></if> 
	
	<a href="{$gxldown.down_url}" target="_blank">{$gxldown.down_name|msubstr=0,40,'utf-8',true}<neq name="gxldown['down_pic']" value=""><font color="green">图</font></neq></a>


	<span id="ct_{$gxldown.down_id}"><neq name="gxldown['down_continu']" value="0"><sup onClick="setcontinu({$gxldown.down_id},'{$gxldown.down_continu}');" class="navpoint">{$gxldown.down_continu}</sup><else/><img src="__PUBLIC__/images/admin/ct.gif" style="margin-top:10px" class="navpoint" onClick="setcontinu({$gxldown.down_id},'{$gxldown.down_continu}');"></neq></span></span>
    </td>
    <td class="l ct"><a href="{$gxldown.list_url}">{$gxldown.down_cid|getlistname}</a></td>
    <td class="l ct">{$gxldown.down_hits}</td>
     <td class="l ct">{$gxldown.down_hits_day}</td>
    <td class="l ct">{$gxldown.down_gold}</td>
     
    <td class="l ct"><volist name="gxldown['down_starsarr']" id="ajaxstar"><img src="__PUBLIC__/images/admin/star{$ajaxstar}.gif" onClick="setstars('Down',{$gxldown.down_id},{$i});" id="star_{$gxldown.down_id}_{$i}" class="navpoint"></volist></td>
    <td class="l ct">{$gxldown.down_addtime|date='Y-m-d',###}</td>
    <td class="r ct"><a href="?s=Admin-Down-Add-id-{$gxldown.down_id}" title="点击修改影片">编辑</a> <a href="?s=Admin-Down-Del-id-{$gxldown.down_id}" onClick="return confirm('确定删除该文章吗?')" title="点击删除影片">删除</a> <eq name="gxldown.down_status" value="1"><a href="?s=Admin-Down-Status-id-{$gxldown.down_id}-value-0" title="点击隐藏文章">隐藏</a><else /><a href="?s=Admin-Down-Status-id-{$gxldown.down_id}-value-1" title="点击显示文章"><font color="red">显示</font></a></eq></td>
  </tr>
  </tbody>
  </volist>
    <tr>
      <td colspan="9" class="r pages">{$pages}</td>
    </tr>   
  <tfoot>
    <tr>
      <td colspan="9" class="r"><input type="button" value="全选" class="submit" onClick="checkall('all');"> <input name="" type="button" value="反选" class="submit" onClick="checkall();"> <eq name="Think.config.url_html" value="1"><input type="button" value="生成静态" name="createhtml" id="createhtml" class="submit" onClick="post('?s=Admin-Down-Create');"/></eq> <input type="button" value="批量删除" class="submit" onClick="if(confirm('删除后将无法还原,确定要删除吗?')){post('?s=Admin-Down-Delall');}else{return false;}"> <input type="button" value="批量移动" class="submit" onClick="$('#psetcid').show();"> <span style="display:none" id="psetcid"><select name="pestcid"><option value="">选择目标分类</option><volist name="list_down" id="gxldown"><option value="{$gxldown.list_id}" <eq name="gxldown.list_id" value="$cid">selected</eq>>{$gxldown.list_name}</option><volist name="gxldown['son']" id="gxldown"><option value="{$gxldown.list_id}" <eq name="gxldown.list_id" value="$cid">selected</eq>>├ {$gxldown.list_name}</option></volist></volist></select> <input type="button" class="submit" value="确定转移" onClick="post('?s=Admin-Down-Pestcid');"/></span></td>
    </tr>  
  </tfoot>
</table>
</form>
<include file="./Public/system/plus_kedit.html" />
<include file="./Public/system/plus_jqmodal.html" />
<style>
#dia_title{height:25px;line-height:25px}
.jqmWindow{height:500px;width:800px;top:10px;left:310px;overflow:hidden}
</style>
<include file="./Public/system/footer.html" />
</body>
</html>